﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>imagezoom</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.1.0/css/ui-light.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>

    <link href="/css/default.css" rel="stylesheet" />
    <link href="imagezoom.css" rel="stylesheet" />
    <script src="imagezoom.js"></script>
</head>
<body>
    <!-- Gallery template -->
    <div id="ItemTemplate" data-win-control="WinJS.Binding.Template">
        <div class="itemTemplate">
            <img class="itemImage" data-win-bind="src: Path" />
        </div>
    </div>

    <!-- Item template -->
    <div id="imageGalleryTemplate" 
         data-win-control="WinJS.Binding.Template">
        <div class="imageGallery">
            <div data-win-control="WinJS.UI.ViewBox">
                <img class="imageGalleryImage" 
                     data-win-bind="src: Path" />
            </div>
        </div>
    </div>

    <div class="imagezoom fragment">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back" disabled type="button"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle"></span>
            </h1>
        </header>
        <section aria-label="Main content" role="main">
            <div class="galleryContent">
                <!-- Gallery -->
                <div id="basicFlipView"
                     data-win-control="WinJS.UI.FlipView"
                     data-win-options="{itemTemplate: select('#ItemTemplate')}">
                </div>
                <!-- ListView -->
                <div id="imageGallery"
                     data-win-control="WinJS.UI.ListView"
                     data-win-options="{itemTemplate: select('#imageGalleryTemplate'), 
                                        layout: {type: WinJS.UI.GridLayout},
                                        selectionMode: 'none',}">
                </div>
            </div>
        </section>
    </div>
</body>
</html>
